#!/bin/bash
echo "today :" date
echo -e "\n请输入目录路径"
read the_path

echo -e "\n 你的路径包含以下文件和文件夹："
ls $the_path

# if
#!/bin/bash

echo "Please enter a number: "
read num


if [ $num -gt 0 -a $num -lt 10 ];then
  echo "a"
elif [ $num -gt -5 -o -lt -1 ];then
  echo "b"
else
   echo "c"
fi

# while
#!/bin/bash
i=1
while [ $i -le 10 ]
do
  echo "i is $i"
  i=$((i+1))
done
